package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.common.service.base.ServiceImplBase;
import com.cloudbroker.bcs.platform.ltb.middle.dao.ViewpointTopicDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.ViewpointTopic;
import com.cloudbroker.bcs.platform.ltb.middle.service.ViewpointTopicService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zhaosh19213 on 2016/10/18.
 */
@Service
public class ViewpointTopicServiceImpl extends TenantServiceImplBase<ViewpointTopic,String>
        implements ViewpointTopicService {
    @Resource
    private ViewpointTopicDAO viewpointTopicDAO;

    @Override
    protected DAOBase<ViewpointTopic, String> getDAO() {
        return viewpointTopicDAO;
    }

    public List<ViewpointTopic> getTopicByIds(List topicIds){
        return viewpointTopicDAO.getTopicsByIds(topicIds);
    }
}
